package com.item.mobile;

import org.apache.commons.lang.StringUtils;

import com.base.mobile.MobException;

public class MobileUtil {
	public static void checkParam(Object obj, String name) throws Exception {
		if(obj == null) {
			throw new MobException(name);
		} else {
			if(obj instanceof String) {
				if(StringUtils.isBlank((String)obj)){
					throw new MobException(name);
				}
			}
		}
		
	}
}
